package com.isoft.course.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.isoft.user.domain.User;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 排课管理对象 course
 * 
 * @author lgm
 * @date 2024-07-19
 */
public class CourseManager extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 课程编号 */
    private Long id;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String name;

    /** 学时 */
    @Excel(name = "学时")
    private String hours;

    /** 学分 */
    @Excel(name = "学分")
    private String credits;

    /** 课程学期 */
    @Excel(name = "课程学期")
    private String term;

    /** 课时安排 */
    @Excel(name = "课时安排")
    private String arrangement;

    /** 课程描述 */
    @Excel(name = "课程描述")
    private String coursedesc;

    /** 教室 */
    @Excel(name = "教室")
    private String classroom;

    /** 人数 */
    @Excel(name = "人数")
    private Long maxnum;

    /** 图片 */
    @Excel(name = "图片")
    private String imgs;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date starttime;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endtime;

    /** 星期 */
    @Excel(name = "星期")
    private String courseweek;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 老师编号 */
    private User teacher;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setHours(String hours) 
    {
        this.hours = hours;
    }

    public String getHours() 
    {
        return hours;
    }
    public void setCredits(String credits) 
    {
        this.credits = credits;
    }

    public String getCredits() 
    {
        return credits;
    }
    public void setTerm(String term) 
    {
        this.term = term;
    }

    public String getTerm() 
    {
        return term;
    }
    public void setArrangement(String arrangement) 
    {
        this.arrangement = arrangement;
    }

    public String getArrangement() 
    {
        return arrangement;
    }
    public void setCoursedesc(String coursedesc) 
    {
        this.coursedesc = coursedesc;
    }

    public String getCoursedesc() 
    {
        return coursedesc;
    }
    public void setClassroom(String classroom) 
    {
        this.classroom = classroom;
    }

    public String getClassroom() 
    {
        return classroom;
    }
    public void setMaxnum(Long maxnum) 
    {
        this.maxnum = maxnum;
    }

    public Long getMaxnum() 
    {
        return maxnum;
    }
    public void setImgs(String imgs) 
    {
        this.imgs = imgs;
    }

    public String getImgs() 
    {
        return imgs;
    }
    public void setStarttime(Date starttime) 
    {
        this.starttime = starttime;
    }

    public Date getStarttime() 
    {
        return starttime;
    }
    public void setEndtime(Date endtime) 
    {
        this.endtime = endtime;
    }

    public Date getEndtime() 
    {
        return endtime;
    }
    public void setCourseweek(String courseweek) 
    {
        this.courseweek = courseweek;
    }

    public String getCourseweek() 
    {
        return courseweek;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public User getTeacher() {
        return teacher;
    }

    public void setTeacher(User teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "CourseManager{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", hours='" + hours + '\'' +
                ", credits='" + credits + '\'' +
                ", term='" + term + '\'' +
                ", arrangement='" + arrangement + '\'' +
                ", coursedesc='" + coursedesc + '\'' +
                ", classroom='" + classroom + '\'' +
                ", maxnum=" + maxnum +
                ", imgs='" + imgs + '\'' +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                ", courseweek='" + courseweek + '\'' +
                ", userId=" + userId +
                ", teacher=" + teacher +
                '}';
    }
}
